package sparkdemo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {
    private String category;
    private String productName;
    private int quantity;
    private String date;
    private String isValid;

    @Override
    public String toString() {
        return "Order{" +
                "category='" + category + '\'' +
                ", productName='" + productName + '\'' +
                ", quantity=" + quantity +
                ", date='" + date + '\'' +
                ", isValid='" + isValid + '\'' +
                '}';
    }
}
